#define POS 0
#define NEG 1

new
	SteveText[10][64]=
	{
		{"bite me."},
		{"yeah whatever mate"},
		{"who said my name?"},
		{"how about you shut up",},
		{"stop talking about me!"},
		{"i like Cheese! :P"},
		{"who Likes Spadge?"},
		{"what you talkin bout fool?"},
		{"haha, you're an idiot"},
		{"and.....?"}
	},
	SteveReply[5][2][42]=
	{
		{"stop",							"hammer time!"},
		{"steve did you eat my sandwich",	"i am your sandwich!"},
		{"steve what time is it",			"call me 'Mr. Wolf' and i might tell you!"},
		{"steve how old are you",			"above the legal age baby ;)"},
		{"steve shut up",					"no, You're a towel!"}
	},
	SteveListen[6][2][40]=
	{
	    {"greenday",		"I love greenday!"},
	    {"ps3",				"PS3s are awesome!"},
	    {"pink floyd",		"pink floyd is like the best band ever!"},
	    {"foo fighters",	"Foo Fighters Rock!"},
	    {"nirvana",			"nirvana were an awesome band"},
	    {"star wars",		"call me a geek, but i love star wars!"}
	};

new
	gSteveTempStr[128],
	tmpSteveSay;



public SteveTalk()
{
	msgaF(WHITE, "{FFFF00}Steve: {FFFFFF}%s", gSteveTempStr);
	printf("[chat] [Steve]: %s", gSteveTempStr);
	gSteveTempStr[0]=EOS;
}
SendSteveChat(text[], time)
{
	if(gSteveTempStr[0]!=EOS)return 0;
	format(gSteveTempStr, 128, text);
	SetTimer("SteveTalk", time, false);
	return 1;
}

SteveChat(text[])
{
	for(new i;i<sizeof SteveReply;i++)
	{
	    if(!strcmp(text, SteveReply[i][0], false, strlen(SteveReply[i][0])))
	    {
		    gSteveTempStr[0]='\0';
			strcat(gSteveTempStr, SteveReply[i][1]);
			SetTimer("SteveTalk", 3000, false);
	        return 1;
	    }
	}
	for(new i;i<sizeof SteveListen;i++)
	{
	    if(strfind(text, SteveListen[i][0])!=-1)
	    {
			SendSteveChat(SteveListen[i][1], ((1000*random(4))+1000));
	        return 1;
	    }
	}
	if(strfind(text, "steve")!=-1)
	{
	    tmpSteveSay=random(sizeof(SteveText));
		SendSteveChat(SteveText[tmpSteveSay], ((1000*random(4))+1000));
		return 1;
	}
	return 1;
}



/*
	sAnswers[2][6][6]=
	{
	    // Positive
		{
			"yes",
			"yeah",
			"yeh",
			"yh",
			"ok",
			"okay"
		},
		// Negative
		{
			"no",
			"na",
			"false",
			"not",
			"nah",
			"noes"
		}
	},
	sVerbs[2][][64]=
	{
	    {
			"good",
		},
	    {
			"bad",
		}
	}
*/
